package cn.baiweigang.uu.db.mapper;

import cn.baiweigang.uu.db.dataobj.ConfigDo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ConfigMapper {

    @Select("select * from stock_config ")
    @Results(id = "configDo", value = {
            @Result(column = "config_key",property = "configKey"),
            @Result(column = "config_value",property = "configValue")
    })
    List<ConfigDo> queryAll();
}
